Skip to content

Conversation

@elementary-data-local
Copy link

This PR simplifies the customers model by removing all the complex transformation logic and replacing it with a simple SELECT * FROM {{ ref('stg_customers') }}.

Changes Made

  • Replaced the entire SQL file with a single SELECT statement
  • Removed CTEs for orders, payments, signups, customer_orders, customer_payments, and final
  • Model now simply passes through all columns from stg_customers

Impact

  • The customers model will now only contain the basic customer information from the staging layer
  • All derived metrics (first_order, most_recent_order, number_of_orders, customer_lifetime_value, etc.) will be removed
  • The model structure will match exactly what's in stg_customers

    Created by: [email protected]

Replace complex transformation logic with simple pass-through from staging layer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant